3.19.35 \(\int (A+B x) (d+e x)^{7/2} \sqrt {a^2+2 a b x+b^2 x^2} \, dx\) [1835]

Optimal. Leaf size=164 \[ \frac {2 (b d-a e) (B d-A e) (d+e x)^{9/2} \sqrt {a^2+2 a b x+b^2 x^2}}{9 e^3 (a+b x)}-\frac {2 (2 b B d-A b e-a B e) (d+e x)^{11/2} \sqrt {a^2+2 a b x+b^2 x^2}}{11 e^3 (a+b x)}+\frac {2 b B (d+e x)^{13/2} \sqrt {a^2+2 a b x+b^2 x^2}}{13 e^3 (a+b x)} \]

[Out]

2/9*(-a*e+b*d)*(-A*e+B*d)*(e*x+d)^(9/2)*((b*x+a)^2)^(1/2)/e^3/(b*x+a)-2/11*(-A*b*e-B*a*e+2*B*b*d)*(e*x+d)^(11/
2)*((b*x+a)^2)^(1/2)/e^3/(b*x+a)+2/13*b*B*(e*x+d)^(13/2)*((b*x+a)^2)^(1/2)/e^3/(b*x+a)

________________________________________________________________________________________

Rubi [A]
time = 0.06, antiderivative size = 164, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.057, Rules used = {784, 78} \begin {gather*} -\frac {2 \sqrt {a^2+2 a b x+b^2 x^2} (d+e x)^{11/2} (-a B e-A b e+2 b B d)}{11 e^3 (a+b x)}+\frac {2 \sqrt {a^2+2 a b x+b^2 x^2} (d+e x)^{9/2} (b d-a e) (B d-A e)}{9 e^3 (a+b x)}+\frac {2 b B \sqrt {a^2+2 a b x+b^2 x^2} (d+e x)^{13/2}}{13 e^3 (a+b x)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(A + B*x)*(d + e*x)^(7/2)*Sqrt[a^2 + 2*a*b*x + b^2*x^2],x]

[Out]

(2*(b*d - a*e)*(B*d - A*e)*(d + e*x)^(9/2)*Sqrt[a^2 + 2*a*b*x + b^2*x^2])/(9*e^3*(a + b*x)) - (2*(2*b*B*d - A*
b*e - a*B*e)*(d + e*x)^(11/2)*Sqrt[a^2 + 2*a*b*x + b^2*x^2])/(11*e^3*(a + b*x)) + (2*b*B*(d + e*x)^(13/2)*Sqrt
[a^2 + 2*a*b*x + b^2*x^2])/(13*e^3*(a + b*x))

Rule 78

Int[((a_.) + (b_.)*(x_))*((c_) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> Int[ExpandIntegran
d[(a + b*x)*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && NeQ[b*c - a*d, 0] && ((ILtQ[
n, 0] && ILtQ[p, 0]) || EqQ[p, 1] || (IGtQ[p, 0] && ( !IntegerQ[n] || LeQ[9*p + 5*(n + 2), 0] || GeQ[n + p + 1
, 0] || (GeQ[n + p + 2, 0] && RationalQ[a, b, c, d, e, f]))))

Rule 784

Int[((d_.) + (e_.)*(x_))^(m_.)*((f_.) + (g_.)*(x_))*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Dis
t[(a + b*x + c*x^2)^FracPart[p]/(c^IntPart[p]*(b/2 + c*x)^(2*FracPart[p])), Int[(d + e*x)^m*(f + g*x)*(b/2 + c
*x)^(2*p), x], x] /; FreeQ[{a, b, c, d, e, f, g, m}, x] && EqQ[b^2 - 4*a*c, 0]

Rubi steps

\begin {align*} \int (A+B x) (d+e x)^{7/2} \sqrt {a^2+2 a b x+b^2 x^2} \, dx &=\frac {\sqrt {a^2+2 a b x+b^2 x^2} \int \left (a b+b^2 x\right ) (A+B x) (d+e x)^{7/2} \, dx}{a b+b^2 x}\\ &=\frac {\sqrt {a^2+2 a b x+b^2 x^2} \int \left (-\frac {b (b d-a e) (-B d+A e) (d+e x)^{7/2}}{e^2}+\frac {b (-2 b B d+A b e+a B e) (d+e x)^{9/2}}{e^2}+\frac {b^2 B (d+e x)^{11/2}}{e^2}\right ) \, dx}{a b+b^2 x}\\ &=\frac {2 (b d-a e) (B d-A e) (d+e x)^{9/2} \sqrt {a^2+2 a b x+b^2 x^2}}{9 e^3 (a+b x)}-\frac {2 (2 b B d-A b e-a B e) (d+e x)^{11/2} \sqrt {a^2+2 a b x+b^2 x^2}}{11 e^3 (a+b x)}+\frac {2 b B (d+e x)^{13/2} \sqrt {a^2+2 a b x+b^2 x^2}}{13 e^3 (a+b x)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.08, size = 88, normalized size = 0.54 \begin {gather*} \frac {2 \sqrt {(a+b x)^2} (d+e x)^{9/2} \left (13 A b e (-2 d+9 e x)+13 a e (-2 B d+11 A e+9 B e x)+b B \left (8 d^2-36 d e x+99 e^2 x^2\right )\right )}{1287 e^3 (a+b x)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(A + B*x)*(d + e*x)^(7/2)*Sqrt[a^2 + 2*a*b*x + b^2*x^2],x]

[Out]

(2*Sqrt[(a + b*x)^2]*(d + e*x)^(9/2)*(13*A*b*e*(-2*d + 9*e*x) + 13*a*e*(-2*B*d + 11*A*e + 9*B*e*x) + b*B*(8*d^
2 - 36*d*e*x + 99*e^2*x^2)))/(1287*e^3*(a + b*x))

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 2.
time = 0.71, size = 79, normalized size = 0.48

method result size
default \(\frac {2 \,\mathrm {csgn}\left (b x +a \right ) \left (e x +d \right )^{\frac {9}{2}} \left (99 B b \,e^{2} x^{2}+117 A b \,e^{2} x +117 B a \,e^{2} x -36 B b d e x +143 A a \,e^{2}-26 A b d e -26 a B d e +8 B b \,d^{2}\right )}{1287 e^{3}}\) \(79\)
gosper \(\frac {2 \left (e x +d \right )^{\frac {9}{2}} \left (99 B b \,e^{2} x^{2}+117 A b \,e^{2} x +117 B a \,e^{2} x -36 B b d e x +143 A a \,e^{2}-26 A b d e -26 a B d e +8 B b \,d^{2}\right ) \sqrt {\left (b x +a \right )^{2}}}{1287 e^{3} \left (b x +a \right )}\) \(89\)
risch \(\frac {2 \sqrt {\left (b x +a \right )^{2}}\, \left (99 B \,e^{6} b \,x^{6}+117 A b \,e^{6} x^{5}+117 B a \,e^{6} x^{5}+360 B b d \,e^{5} x^{5}+143 A a \,e^{6} x^{4}+442 A b d \,e^{5} x^{4}+442 B a d \,e^{5} x^{4}+458 B b \,d^{2} e^{4} x^{4}+572 A a d \,e^{5} x^{3}+598 A b \,d^{2} e^{4} x^{3}+598 B a \,d^{2} e^{4} x^{3}+212 B b \,d^{3} e^{3} x^{3}+858 A a \,d^{2} e^{4} x^{2}+312 A b \,d^{3} e^{3} x^{2}+312 B a \,d^{3} e^{3} x^{2}+3 B b \,d^{4} e^{2} x^{2}+572 A a \,d^{3} e^{3} x +13 A b \,d^{4} e^{2} x +13 B a \,d^{4} e^{2} x -4 B b \,d^{5} e x +143 A a \,d^{4} e^{2}-26 A b \,d^{5} e -26 B a \,d^{5} e +8 B b \,d^{6}\right ) \sqrt {e x +d}}{1287 \left (b x +a \right ) e^{3}}\) \(293\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((B*x+A)*(e*x+d)^(7/2)*((b*x+a)^2)^(1/2),x,method=_RETURNVERBOSE)

[Out]

2/1287*csgn(b*x+a)*(e*x+d)^(9/2)*(99*B*b*e^2*x^2+117*A*b*e^2*x+117*B*a*e^2*x-36*B*b*d*e*x+143*A*a*e^2-26*A*b*d
*e-26*B*a*d*e+8*B*b*d^2)/e^3

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 249 vs. \(2 (123) = 246\).
time = 0.28, size = 249, normalized size = 1.52 \begin {gather*} \frac {2}{99} \, {\left (9 \, b x^{5} e^{5} - 2 \, b d^{5} + 11 \, a d^{4} e + {\left (34 \, b d e^{4} + 11 \, a e^{5}\right )} x^{4} + 2 \, {\left (23 \, b d^{2} e^{3} + 22 \, a d e^{4}\right )} x^{3} + 6 \, {\left (4 \, b d^{3} e^{2} + 11 \, a d^{2} e^{3}\right )} x^{2} + {\left (b d^{4} e + 44 \, a d^{3} e^{2}\right )} x\right )} \sqrt {x e + d} A e^{\left (-2\right )} + \frac {2}{1287} \, {\left (99 \, b x^{6} e^{6} + 8 \, b d^{6} - 26 \, a d^{5} e + 9 \, {\left (40 \, b d e^{5} + 13 \, a e^{6}\right )} x^{5} + 2 \, {\left (229 \, b d^{2} e^{4} + 221 \, a d e^{5}\right )} x^{4} + 2 \, {\left (106 \, b d^{3} e^{3} + 299 \, a d^{2} e^{4}\right )} x^{3} + 3 \, {\left (b d^{4} e^{2} + 104 \, a d^{3} e^{3}\right )} x^{2} - {\left (4 \, b d^{5} e - 13 \, a d^{4} e^{2}\right )} x\right )} \sqrt {x e + d} B e^{\left (-3\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(e*x+d)^(7/2)*((b*x+a)^2)^(1/2),x, algorithm="maxima")

[Out]

2/99*(9*b*x^5*e^5 - 2*b*d^5 + 11*a*d^4*e + (34*b*d*e^4 + 11*a*e^5)*x^4 + 2*(23*b*d^2*e^3 + 22*a*d*e^4)*x^3 + 6
*(4*b*d^3*e^2 + 11*a*d^2*e^3)*x^2 + (b*d^4*e + 44*a*d^3*e^2)*x)*sqrt(x*e + d)*A*e^(-2) + 2/1287*(99*b*x^6*e^6
+ 8*b*d^6 - 26*a*d^5*e + 9*(40*b*d*e^5 + 13*a*e^6)*x^5 + 2*(229*b*d^2*e^4 + 221*a*d*e^5)*x^4 + 2*(106*b*d^3*e^
3 + 299*a*d^2*e^4)*x^3 + 3*(b*d^4*e^2 + 104*a*d^3*e^3)*x^2 - (4*b*d^5*e - 13*a*d^4*e^2)*x)*sqrt(x*e + d)*B*e^(
-3)

________________________________________________________________________________________

Fricas [A]
time = 0.83, size = 221, normalized size = 1.35 \begin {gather*} \frac {2}{1287} \, {\left (8 \, B b d^{6} + {\left (99 \, B b x^{6} + 143 \, A a x^{4} + 117 \, {\left (B a + A b\right )} x^{5}\right )} e^{6} + 2 \, {\left (180 \, B b d x^{5} + 286 \, A a d x^{3} + 221 \, {\left (B a + A b\right )} d x^{4}\right )} e^{5} + 2 \, {\left (229 \, B b d^{2} x^{4} + 429 \, A a d^{2} x^{2} + 299 \, {\left (B a + A b\right )} d^{2} x^{3}\right )} e^{4} + 4 \, {\left (53 \, B b d^{3} x^{3} + 143 \, A a d^{3} x + 78 \, {\left (B a + A b\right )} d^{3} x^{2}\right )} e^{3} + {\left (3 \, B b d^{4} x^{2} + 143 \, A a d^{4} + 13 \, {\left (B a + A b\right )} d^{4} x\right )} e^{2} - 2 \, {\left (2 \, B b d^{5} x + 13 \, {\left (B a + A b\right )} d^{5}\right )} e\right )} \sqrt {x e + d} e^{\left (-3\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(e*x+d)^(7/2)*((b*x+a)^2)^(1/2),x, algorithm="fricas")

[Out]

2/1287*(8*B*b*d^6 + (99*B*b*x^6 + 143*A*a*x^4 + 117*(B*a + A*b)*x^5)*e^6 + 2*(180*B*b*d*x^5 + 286*A*a*d*x^3 +
221*(B*a + A*b)*d*x^4)*e^5 + 2*(229*B*b*d^2*x^4 + 429*A*a*d^2*x^2 + 299*(B*a + A*b)*d^2*x^3)*e^4 + 4*(53*B*b*d
^3*x^3 + 143*A*a*d^3*x + 78*(B*a + A*b)*d^3*x^2)*e^3 + (3*B*b*d^4*x^2 + 143*A*a*d^4 + 13*(B*a + A*b)*d^4*x)*e^
2 - 2*(2*B*b*d^5*x + 13*(B*a + A*b)*d^5)*e)*sqrt(x*e + d)*e^(-3)

________________________________________________________________________________________

Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(e*x+d)**(7/2)*((b*x+a)**2)**(1/2),x)

[Out]

Exception raised: SystemError >> excessive stack use: stack is 5986 deep

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 1228 vs. \(2 (123) = 246\).
time = 1.09, size = 1228, normalized size = 7.49 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(e*x+d)^(7/2)*((b*x+a)^2)^(1/2),x, algorithm="giac")

[Out]

2/45045*(15015*((x*e + d)^(3/2) - 3*sqrt(x*e + d)*d)*B*a*d^4*e^(-1)*sgn(b*x + a) + 15015*((x*e + d)^(3/2) - 3*
sqrt(x*e + d)*d)*A*b*d^4*e^(-1)*sgn(b*x + a) + 3003*(3*(x*e + d)^(5/2) - 10*(x*e + d)^(3/2)*d + 15*sqrt(x*e +
d)*d^2)*B*b*d^4*e^(-2)*sgn(b*x + a) + 12012*(3*(x*e + d)^(5/2) - 10*(x*e + d)^(3/2)*d + 15*sqrt(x*e + d)*d^2)*
B*a*d^3*e^(-1)*sgn(b*x + a) + 12012*(3*(x*e + d)^(5/2) - 10*(x*e + d)^(3/2)*d + 15*sqrt(x*e + d)*d^2)*A*b*d^3*
e^(-1)*sgn(b*x + a) + 5148*(5*(x*e + d)^(7/2) - 21*(x*e + d)^(5/2)*d + 35*(x*e + d)^(3/2)*d^2 - 35*sqrt(x*e +
d)*d^3)*B*b*d^3*e^(-2)*sgn(b*x + a) + 45045*sqrt(x*e + d)*A*a*d^4*sgn(b*x + a) + 60060*((x*e + d)^(3/2) - 3*sq
rt(x*e + d)*d)*A*a*d^3*sgn(b*x + a) + 7722*(5*(x*e + d)^(7/2) - 21*(x*e + d)^(5/2)*d + 35*(x*e + d)^(3/2)*d^2
- 35*sqrt(x*e + d)*d^3)*B*a*d^2*e^(-1)*sgn(b*x + a) + 7722*(5*(x*e + d)^(7/2) - 21*(x*e + d)^(5/2)*d + 35*(x*e
 + d)^(3/2)*d^2 - 35*sqrt(x*e + d)*d^3)*A*b*d^2*e^(-1)*sgn(b*x + a) + 858*(35*(x*e + d)^(9/2) - 180*(x*e + d)^
(7/2)*d + 378*(x*e + d)^(5/2)*d^2 - 420*(x*e + d)^(3/2)*d^3 + 315*sqrt(x*e + d)*d^4)*B*b*d^2*e^(-2)*sgn(b*x +
a) + 18018*(3*(x*e + d)^(5/2) - 10*(x*e + d)^(3/2)*d + 15*sqrt(x*e + d)*d^2)*A*a*d^2*sgn(b*x + a) + 572*(35*(x
*e + d)^(9/2) - 180*(x*e + d)^(7/2)*d + 378*(x*e + d)^(5/2)*d^2 - 420*(x*e + d)^(3/2)*d^3 + 315*sqrt(x*e + d)*
d^4)*B*a*d*e^(-1)*sgn(b*x + a) + 572*(35*(x*e + d)^(9/2) - 180*(x*e + d)^(7/2)*d + 378*(x*e + d)^(5/2)*d^2 - 4
20*(x*e + d)^(3/2)*d^3 + 315*sqrt(x*e + d)*d^4)*A*b*d*e^(-1)*sgn(b*x + a) + 260*(63*(x*e + d)^(11/2) - 385*(x*
e + d)^(9/2)*d + 990*(x*e + d)^(7/2)*d^2 - 1386*(x*e + d)^(5/2)*d^3 + 1155*(x*e + d)^(3/2)*d^4 - 693*sqrt(x*e
+ d)*d^5)*B*b*d*e^(-2)*sgn(b*x + a) + 5148*(5*(x*e + d)^(7/2) - 21*(x*e + d)^(5/2)*d + 35*(x*e + d)^(3/2)*d^2
- 35*sqrt(x*e + d)*d^3)*A*a*d*sgn(b*x + a) + 65*(63*(x*e + d)^(11/2) - 385*(x*e + d)^(9/2)*d + 990*(x*e + d)^(
7/2)*d^2 - 1386*(x*e + d)^(5/2)*d^3 + 1155*(x*e + d)^(3/2)*d^4 - 693*sqrt(x*e + d)*d^5)*B*a*e^(-1)*sgn(b*x + a
) + 65*(63*(x*e + d)^(11/2) - 385*(x*e + d)^(9/2)*d + 990*(x*e + d)^(7/2)*d^2 - 1386*(x*e + d)^(5/2)*d^3 + 115
5*(x*e + d)^(3/2)*d^4 - 693*sqrt(x*e + d)*d^5)*A*b*e^(-1)*sgn(b*x + a) + 15*(231*(x*e + d)^(13/2) - 1638*(x*e
+ d)^(11/2)*d + 5005*(x*e + d)^(9/2)*d^2 - 8580*(x*e + d)^(7/2)*d^3 + 9009*(x*e + d)^(5/2)*d^4 - 6006*(x*e + d
)^(3/2)*d^5 + 3003*sqrt(x*e + d)*d^6)*B*b*e^(-2)*sgn(b*x + a) + 143*(35*(x*e + d)^(9/2) - 180*(x*e + d)^(7/2)*
d + 378*(x*e + d)^(5/2)*d^2 - 420*(x*e + d)^(3/2)*d^3 + 315*sqrt(x*e + d)*d^4)*A*a*sgn(b*x + a))*e^(-1)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \sqrt {{\left (a+b\,x\right )}^2}\,\left (A+B\,x\right )\,{\left (d+e\,x\right )}^{7/2} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((a + b*x)^2)^(1/2)*(A + B*x)*(d + e*x)^(7/2),x)

[Out]

int(((a + b*x)^2)^(1/2)*(A + B*x)*(d + e*x)^(7/2), x)

________________________________________________________________________________________